import requests

# 学历编号
education_number = "A7FKKV3C4Q40RWGD"
# 验证码
vcode = input("请输入验证码：")

# API 请求配置
url = 'https://www.apimy.cn/api/xxw/bgcx?key=Ii875XV8f7BomLGhgg1obwMD1Whbcr'
data = {
    'education_number': education_number,
    'vcode': vcode
}

# 发送请求并打印结果
try:
    response = requests.post(url, data=data)
    print(response.json())
except Exception as e:
    print(f'查询失败: {str(e)}')